<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script>
        $(function(){
           $('#province').combobox({
                //    data:[
                //        {
                //            "id":1,
                //            "text":"江苏省"
                //        },
                //        {
                //            "id":2,
                //            "text":"山东省"
                //        },
                //        {
                //            "id":3,
                //            "text":"广东省"
                //        },
                //        {
                //            "id":4,
                //            "text":"湖北省"
                //        },
                //    ],
               url:'data/province.json', 
               method:'get',
               valueField:'id',
               textField:'text',
               panelHeight:'auto',
               onSelect(record){
                  var url='data/city.json?id='+record.id;
                  $('#city').combobox('reload',url);
               }
           });
       
           $('#city').combobox({
                method:'get',
                valueField:'id',
                textField:'text',
                panelHeight:'auto',
            });
        });
    </script>
</head>
<body>
    <input id="province">
    <input id="city">
</body>
</html>